{"version":3,"sources":["manager.js"],"names":["BX","window","namespace","UI","SelectorManager","statuses","searchStarted","allowSendEvent","extranetUser","instances","finderInitialized","loadAllInitialized","obClientDb","obClientDbData","obClientDbDataSearchIndex","getSelector","params","type","isNotEmptyObject","isNotEmptyString","id","this","buildRelations","entities","prefix","relationRoot","relation","p","iid","parent","hasOwnProperty","push","makeTree","relationsList","relId","itemsList","x","length","idFlat","items","onAddData","data","instance","entityTypeData","i","entityType","ENTITIES","itemsLast","itemsHidden","additionalData","key","ITEMS","ADDITIONAL_INFO","TYPE","PREFIX","RELATION_ROOT","GROUPS_LIST","dialogGroups","isArray","ITEMS_LAST","ITEMS_HIDDEN","TABS","tabs","list","SORT","sortData","callback","select","itemsSelectedSorted","getItemsSelectedSorted","itemId","fullList","k","convertEntityType","getEntityTypeFullList","item","selectorId","undeletable","util","in_array","itemsUndeletable","state","name","message","onCustomEvent","toUpperCase","result","test","match","array_unique","checkEmail","searchString","trim","re","matches","exec","userName","userLastName","parts","split","pop","join","lastName","email","toLowerCase","ready","addCustomEvent","Finder","selectorInstance","postponeSearch"],"mappings":"CAAA,WAEA,IAAIA,EAAKC,OAAOD,GAEhBA,EAAGE,UAAU,SAEb,KAAMF,EAAGG,GAAGC,gBACZ,CACC,OAGDJ,EAAGG,GAAGC,iBAELC,UACCC,cAAe,MACfC,eAAgB,MAGjBC,aAAc,MAEdC,aAGAC,kBAAmB,MACnBC,mBAAoB,MACpBC,WAAY,KACZC,kBACAC,6BAGAC,YAAa,SAASC,GAErB,OACChB,EAAGiB,KAAKC,iBAAiBF,IACtBhB,EAAGiB,KAAKE,iBAAiBH,EAAOI,KAChCpB,EAAGiB,KAAKC,iBAAiBG,KAAKZ,UAAUO,EAAOI,KAC/CC,KAAKZ,UAAUO,EAAOI,IACtB,OAILE,eAAgB,SAASC,EAAUC,EAAQC,GAE1C,IAAIC,KAAeC,EAAGC,EAEtBH,EACCA,GACGzB,EAAGiB,KAAKC,iBAAiBK,EAASC,EAASC,KAC3C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